package com.bigger.arch.app.repository.dao.impl;

/*import com.bigger.arch.dao.dao.UserJpaDaoExt;
import com.bigger.arch.dao.model.UserJpaModel;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;*/

/*public class UserJpaDaoImpl implements UserJpaDaoExt {

    @PersistenceContext
    private EntityManager entityManager;

    public Integer updateBalance(UserJpaModel userJpaModel) {
        if (userJpaModel == null) {
            return 0;
        }
        String sql = "UPDATE t_user_jpa AS userJpa SET userJpa.Balance=:Balance WHERE userJpa.ID=:ID";
        return entityManager.createQuery(sql)
                .setParameter("Balance", userJpaModel.getBalance())
                .setParameter("ID", userJpaModel.getId())
                .executeUpdate();
    }
}*/
